
package pack;

import net.useobjects.AbstractMovableRotatableGroup;
import net.useobjects.geom.Position;

public abstract class Hranica extends AbstractMovableRotatableGroup {

    private final double polomer=40;
    
//    public Hranica(AbstractMovableRotatableGroup parent, double positionX, double positionY) {
//        super(parent, positionX, positionY);
//        
//    }
    
    public Hranica(AbstractMovableRotatableGroup parent, Position pozicia) {
        super(parent, pozicia);
        
    }
    
    public Hranica(AbstractMovableRotatableGroup parent, Position pozicia, double angle) {
        super(parent, pozicia, angle);
        
    }
    
    int getPolomer(Kamen kamen) {
        return kamen.getPolomer();
    }
    
    //polar transformation
    //polar radius
    double getPolarRadius(Position position) {
//        System.out.println("X "+position.getX());
//        System.out.println("Y "+position.getY());
        return (
                Math.sqrt(
                        Math.pow(position.getX(), 2.0) +
                        Math.pow(position.getY(), 2.0) 
                         )
                );
    }
}
